<?php

namespace app\api\model;

use think\Model;

class Admin extends Model
{
    // 开启自动写入时间戳字段
    protected $autoWriteTimestamp = true;

    public function role()
    {
        return $this->belongsToMany('role', 'admin_role', 'role_id', 'admin_id');
    }
}
